package com.wu;

/**
 * @description: <br>
 * @date: 2020/6/15 <br>
 * @author: fei.wu <br>
 */

public class TestRule {

    public static void main(String[] args) {
        Pipeline pipeline = new Pipeline(100);
        pipeline.addValve(new ManJianRule());
        pipeline.addValve(new YouHuiRule("user id "));
        System.out.println("优惠后金额: " + pipeline.invoke());
    }
}
